package com.itheima.day05.myInteger.test3;

import java.util.Random;

public class Test {
    public static void main(String[] args) {
        Random r = new Random();
        Integer i1 = 5;
        System.out.println(i1);
        Integer i2 = r.nextInt(10) + 1;
        System.out.println(i2);
        int max = Math.max(i1, i2);
        System.out.println(max);

        i1 += r.nextInt(10);
        System.out.println(i1);
    }
}
